import {
  BrowserRouter as Router,
  Redirect,
  Route,
  Switch,
} from 'react-router-dom';

import About from '../views/About';
import FAQs from '../views/FAQs';
import Home from '../views/Home';
import NFTs from '../views/NFTs';

2;

function Routers() {
  return (
    <Router>
      <Switch>
        <Route path="/home" component={Home} />
        <Route path="/about" component={About} />
        <Route path="/faqs" component={FAQs} />
        <Route path="/nfts" component={NFTs} />
        <Redirect from="/" to="/home" />
      </Switch>
    </Router>
  );
}

export default Routers;
